package nancal.mp.db.mongo.table

import java.io.*
import nbcp.base.db.*
import nbcp.base.comm.*
import nbcp.base.extend.*
import nbcp.base.enums.*
import nbcp.base.utils.*
import nbcp.myoql.db.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.mongo.*
import nbcp.myoql.db.mongo.base.*
import nbcp.myoql.db.mongo.component.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*


/**
 * 身份证信息
 */
@nbcp.base.db.annotation.Cn(value = """身份证信息""")
class IdentityCardDataMeta(private val parentPropertyName: String): MongoColumnName() {
    constructor(value: MongoColumnName) : this(value.toString()) {}
    /**
     * 姓名
     */
    @nbcp.base.db.annotation.Cn(value = """姓名""")
    val name = mongoColumnJoin(this.parentPropertyName, "name")
    /**
     * 头像
     */
    @nbcp.base.db.annotation.Cn(value = """头像""")
    val photo = IdUrlMeta(mongoColumnJoin(this.parentPropertyName, "photo"))
    /**
     * 身份证号
     */
    @nbcp.base.db.annotation.Cn(value = """身份证号""")
    val number = mongoColumnJoin(this.parentPropertyName, "number")
    /**
     * 性别
     */
    @nbcp.base.db.annotation.Cn(value = """性别""")
    val sex = mongoColumnJoin(this.parentPropertyName, "sex")
    /**
     * 生日
     */
    @nbcp.base.db.annotation.Cn(value = """生日""")
    val birthday = mongoColumnJoin(this.parentPropertyName, "birthday")
    /**
     * 身份证地址
     */
    @nbcp.base.db.annotation.Cn(value = """身份证地址""")
    val location = mongoColumnJoin(this.parentPropertyName, "location")
    override fun toString(): String {
        return mongoColumnJoin(this.parentPropertyName).toString()
    }
}

